//
//  postRequestViewController.m
//  FastRunDemo
//
//  Created by 苟亚明 on 16/9/27.
//  Copyright © 2016年 苟亚明. All rights reserved.
//

#import "postRequestViewController.h"
#import "MBProgressHUD+MJ.h"
@interface postRequestViewController ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgTopC;

@end

@implementation postRequestViewController
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    UIImage *image = [UIImage imageNamed:@"transparent-1"];
    [self.navigationController.navigationBar setBackgroundImage:image
                                                  forBarMetrics:UIBarMetricsDefault];
    [self.navigationController.navigationBar setShadowImage:image];
    
    if(iphone5){
        self.imgTopC.constant = 0;
    }
    
}
- (void)viewDidDisappear:(BOOL)animated{
    [super viewDidDisappear:animated];
    [self.navigationController.navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
    [self.navigationController.navigationBar setShadowImage:nil];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"我想要";
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:@"arrow_back" highImage:@"arrow_back" target:self action:@selector(leftBtnClick)];


}
- (IBAction)btnGoPayClick:(id)sender {
    [MBProgressHUD showError:@"error"];
}
- (IBAction)btnReSelectClick:(id)sender {
    [MBProgressHUD showError:@"error"];
}
// 导航栏左边按钮点击事件
- (void)leftBtnClick{
    [self dismissViewControllerAnimated:YES completion:nil];
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self.view endEditing:YES];
}

@end
